Animations best practices
To create more efficient animations:
- Avoid excessive use of bezier interpolation, because it is more expensive than linear, step, and smooth-step interpolation.
- When layout total time is high (shown in the Animation HUD), you can improve the performance of your application by reducing or optimizing layouts by decreasing the number of dynamic objects in the layout. This is particularly the case in applications with complex layout trees where objects in layouts move dynamically.
Layout total time shows the amount of time Kanzi Engine used for iterating the layout objects such as grid layout and stack layout.
- Remove keyframes that do not affect the precision of an animation. See Removing redundant keyframes.
- Remove animation data channels that do not animate anything. See Removing redundant animation data channels.
See also
Removing redundant keyframes
Removing redundant animation data channels
Measuring the performance of your Kanzi application
Best practices
Animations
Open topic with navigation